package com.zxl.grocery.common.persistence.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 配置参数表
 * </p>
 *
 * @author zxl
 * @since 2017-07-31
 */
@TableName("crawler_config")
public class CrawlerConfig extends Model<CrawlerConfig> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	@TableField("create_date")
	private Date createDate;
	@TableField("modify_date")
	private Date modifyDate;
    /**
     * 代码
     */
	private String code;
    /**
     * 描述
     */
	private String info;
    /**
     * 内容
     */
	private String content;
    /**
     * 状态
     */
	private Integer status;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CrawlerConfig{" +
			"id=" + id +
			", createDate=" + createDate +
			", modifyDate=" + modifyDate +
			", code=" + code +
			", info=" + info +
			", content=" + content +
			", status=" + status +
			"}";
	}
}
